﻿
namespace Universe.VectorImage
{
    using System;

    [Serializable]
    public class SimpleLine
    {
        public int Pen;
        public int X1, Y1;
        public int X2, Y2;

        public SimpleLine()
        {
        }

        public SimpleLine(int pen, int x1, int y1, int x2, int y2)
        {
            Pen = pen;
            X1 = x1;
            Y1 = y1;
            X2 = x2;
            Y2 = y2;
        }

        public override string ToString()
        {
            return string.Format("#{4}:{{{0},{1}}}-{{{2},{3}}}", X1, Y1, X2, Y2, Pen);
        }
    }

}
